﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;

namespace UmlDesigner.Gui
{
    public partial class ExceptionReport : Form
    {
        public ExceptionReport(Exception e)
        {
            InitializeComponent();

            msgTextBox.Text = e.Message;
            richTextBox1.Text = e.Message + "\n" + "Version: " + Assembly.GetExecutingAssembly().GetName().Version + "\n" + e.StackTrace;
        }

        private void ExceptionReport_Load(object sender, EventArgs e)
        {
            Bitmap bmp = UmlDesigner.Properties.Resources.error;
            bmp.MakeTransparent(bmp.GetPixel(0, 0));
            pictureBox1.Image = bmp;
        }
    }
}
